#
# Copyright (c) 2015 Juniper Networks, Inc. All rights reserved.
#

Import('DbEnv')
CqlIfEnv = DbEnv.Clone()
CqlIfEnv.Prepend(LIBS=['sandesh'])
CqlIfEnv.Append(CPPPATH = ['/usr/include'])
local_srcs = ['cql_if.cc']

gen_files = CqlIfEnv.SandeshGenCpp('cql.sandesh')
gen_srcs = CqlIfEnv.ExtractCpp(gen_files)

srcs = local_srcs + gen_srcs

libcasscql = CqlIfEnv.Library('cassandra_cql', srcs)
CqlIfEnv.Install(CqlIfEnv['TOP_LIB'], libcasscql)

CqlIfEnv.SConscript('test/SConscript', exports='CqlIfEnv', duplicate=0)
